﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Shopping_Address.aspx.cs"
    Inherits="V5_EShop._Template.Default.Member.Shopping_Address" %>

<%@ Register Src="Controls/menu.ascx" TagName="menu" TagPrefix="mm" %>
<%@ Register Src="Controls/header.ascx" TagName="header" TagPrefix="mm" %>
<%@ Register Src="Controls/footer.ascx" TagName="footer" TagPrefix="mm" %>
<%@ Register Src="Controls/usermenu.ascx" TagName="usermenu" TagPrefix="mm" %>
<%@ Register Src="Controls/verlogin.ascx" TagName="verlogin" TagPrefix="mm" %>
<mm:verlogin ID="verlogin2" runat="server" />
<%--验证用户登录--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        <%=config.SiteTitle %>-发货地址</title>
    <link href="/_template/<%=config.TemplatePath%>/css/Address.css" rel="stylesheet"
        type="text/css" />
    <link href="/_template/<%=config.TemplatePath%>/css/init.css" rel="stylesheet" type="text/css">
    <link href="/_template/<%=config.TemplatePath %>/css/head.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="/Scripts/jquery_formValidator.css">

    <script type="text/javascript" src="/Scripts/jquery-1.3.2.js"></script>

    <script type="text/javascript" src="/Scripts/jquery_formValidator.js"></script>

    <script type="text/javascript" src="/Scripts/jquery_formValidatorRegex.js"></script>

    <script type="text/javascript" src="/Scripts/DateTimeMask.js"></script>

    <script language="javascript">
        function tab_Change(currentnum, tab, content, fleet, deep, sum) {
            for (var i = 1; i <= sum; i++) { document.getElementById(content + i).style.display = "none"; }
            for (var i = 1; i <= sum; i++) { document.getElementById(tab + i).className = fleet; }
            document.getElementById(tab + currentnum).className = deep;
            document.getElementById(content + currentnum).style.display = "block";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="page">
        <mm:header ID="header1" runat="server" />
        <div class="clear">
        </div>
        <div class="banner">
            <img height="72" src="/_template/<%=config.TemplatePath%>/images/Default/guanggao.gif"
                width="950"></div>
        <span style="display: block; margin: 8px 0;">首页 >> 会员后台</span>
        <div class="left">
            <mm:usermenu ID="usermenu1" runat="server" />
            <div class="zuo_xia">
                <div>
                    <img src="/_template/<%=config.TemplatePath%>/images/Default/top.gif" width="195"></div>
                <div class="yhxx">
                    <mm:menu ID="menu1" runat="server" />
                </div>
                <img height="30" src="/_template/<%=config.TemplatePath%>/images/Default/bg_03.gif"
                    width="195"></div>
        </div>
        <div class="right">
            <div class="Content">
                <h2 class="sydd">
                    我的用过的地址</h2>
                <asp:DataList ID="dlHistoryList" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
                    OnItemCommand="dlHistoryList_ItemCommand">
                    <ItemTemplate>
                        <div class="History_left">
                            <ul>
                                <li>收货人姓名：<%#DataBinder.Eval(Container.DataItem, "tousername")%></li>
                                <li>收货人地区：<%#DataBinder.Eval(Container.DataItem, "touserareapro")%>
                                    <%#DataBinder.Eval(Container.DataItem, "touserareacity")%>
                                    <%#DataBinder.Eval(Container.DataItem, "touserareacity2")%></li>
                                <li>收货人地址：<%#DataBinder.Eval(Container.DataItem, "touserurl")%></li>
                                <li>邮政编码：<%#DataBinder.Eval(Container.DataItem, "topostnum")%></li>
                                <li>固定电话：<%#DataBinder.Eval(Container.DataItem,"touserphone") %></li>
                                <li>移动电话：<%#DataBinder.Eval(Container.DataItem, "tousertelephone")%></li>
                            </ul>
                            <span class="History_01">
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Bind("id") %>'
                                    CommandName="go">修改</asp:LinkButton>
                                |
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Bind("id") %>'
                                    CommandName="del">删除</asp:LinkButton></span>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                <div class="clear">
                </div>
                <h2 class="sydd">
                    填写新地址</h2>
                <table width="700" border="0" cellspacing="0" cellpadding="0" class="table_dz">
                    <tr>
                        <td width="316" align="right">
                            收货人姓名：
                        </td>
                        <td width="632">
                            <asp:TextBox ID="txtToUserName" runat="server" CssClass="textfield_01"></asp:TextBox>
                            <span class="Star">*</span><span class="gray">请准确填写真实姓名，以便确保商品准确无误送达。</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            配送省份/直辖市：
                        </td>
                        <td>
                            <div class="ChinaArea">
                                <select id="province" style="width: 100px;">
                                </select>
                                <select id="city" style="width: 100px;">
                                </select>
                                <select id="county" style="width: 120px;">
                                </select>
                                <asp:HiddenField runat="server" ID="Tprovince" />
                                <asp:HiddenField runat="server" ID="TCity" />
                                <asp:HiddenField runat="server" ID="TCounty" />
                            </div>
                            <span class="Star">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top">
                            详细地址：
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserToUrl" runat="server" Text="" CssClass="textfield_02"></asp:TextBox>
                            <span class="Star">*</span><br />
                            <span class="gray">送货上门，货到付款！</span><a href="/help/Delivery.html" target="_blank">查看配送范围</a>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            邮政编码：
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserToPostNum" runat="server" CssClass="textfield_03"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            固定电话：
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserToPhone" runat="server" CssClass="textfield_04"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            手 机：
                        </td>
                        <td>
                            <asp:TextBox ID="txtToUserTelePhone" runat="server" CssClass="textfield_04"></asp:TextBox>
                            <span class="gray">手机和固定电话至少填一个</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <input name="hfid" id="hfid" type="hidden" value="<%=address.id %>" />
                            <asp:Button ID="btnSave" runat="server" Text="" CssClass="button_01" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="clear">
        </div>
        <mm:footer ID="footer2" runat="server" />
        <div class="clear">
        </div>
    </div>
    </form>

    <script type="text/javascript" src="/_template/default/scripts/location.js"></script>

    <script type="text/javascript" src="/_template/default/scripts/YLChinaArea.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $(".ChinaArea").jChinaArea({
                aspnet: true,
                s1: "<%=s1 %>",
                s2: "<%=s2 %>",
                s3: "<%=s3 %>"
            });


        });

        $(function() {
            $.formValidator.initConfig({ formid: "form1", alertmessage: true, onerror: function(msg) { alert(msg) } });

            $("#txtToUserName").formValidator({ onshow: "请输入姓名", onfocus: "姓名不能为空", oncorrect: "姓名合法" }).inputValidator({ min: 1, onerror: "姓名不能为空,请确认" });

            $("#txtToUserTelePhone").formValidator({ empty: true }).inputValidator({ min: 11, max: 11, onerror: "手机号码必须是11位的,请确认" }).regexValidator({ regexp: "mobile", datatype: "enum", onerror: "你输入的手机号码格式不正确" });

            $("#txtUserToPostNum").formValidator({ onshow: "请输入邮编", onfocus: "6位数字组成的哦", oncorrect: "谢谢你的合作，你的邮编正确" }).regexValidator({ regexp: "zipcode", datatype: "enum", onerror: "邮编格式不正确" });
        });
    </script>

</body>
</html>
